Added support for enum members of YamlObjects.