Add support for enums and static getters in Generator
Use generator to build enum types, not preprocessor

Much nicer