Fixes a bug when using Double types as sorting key

Fixes the `UnsupportedOperationException` mentioned in #551. And corrects the documentation of the `isNormalizedKeyPrefixOnly()` method in `TypeComparator`.