fixed issue where subtypes were not being added to base type's ancestors