Move topologicallySortSuperclassesAndRecordAllInstances from CommonSupertypes to TypeUtils.
JS backend: fix order class and trait in list supertypes