Fixed NavigableSet/NavigableMap detection in createCollection/createMap

Issue: SPR-11257