hasStereotype checks for a stereotype recursively, was needed for class_is_archetype