generate_typetext: handle enums and booleans automatically