#3690: bugfix to select_all_models_of_type.py