Added support for parsing attributes and values to enums.