Changed reflection routines from a function-containing class template to a bunch of functions and function templates.