Enums should be registered as primitives.