fix bug in Clabject.getInheritanceAsSubtype() and
Clabject.getInheritanceAsSupertype()