Add serialization and deserialization for OFSet and OFCountedSet.