bugfix metadata output for enums