Enum support

Support for enum.