Added getIndirectPropertyValuesAsSortedItems and use in hasIndirectSubclass and indirectSubclassOf.