quick and dirty support for enums inside messages and extensions