Support `serialize` argument for primitive Sets

In analogy to `comparator` argument in regular implementation.
`comparator` resolution strict to spec
Follow rules of `comparator` resolution