Add some support for functional groups and enhanced MR writing.
Make the generated meta data a member of the generator.

This seems like a logical thing to do, since the generator
already has other member variables that depend on the meta data.