Some old code that did automatic-ish reflection in C++