Add registerable functional variables (bug #3636, with doc mods)