Remove unnecessary topLevelTypes indirection

topLevelTypes is a key mirror, so dependency and topLevelType are always the same here.