add get_types() classmethod. add tests for it and for get_type_classes()