Compile union style enums

I want to emit nested types, but can't get IKVM to created nested types with base types of the class declaring them. There must be a way...