compiler - cpp11: FieldsGenerator - enums support added

some minor refactoring