Added support for enum type parsing