Better plugin support for enums