Fixed issue with attributes that have enums as constructor arguments.