`comparator` resolution strict to spec
Support `serialize` argument for primitive maps

In analogy to `comparator` argument in regular implementation.