schema_get_type_text: do not always expand enums