fix bug: count only really unresolved classes in ClassHierarchy