withRegisteredCodec
Creates a new CodecDictionary by registering an additional TypeCodec.
Return
a new instance of CodecDictionary containing the newly registered codec.
Parameters
codec
the new codec to register.
dictionary
the TypeDictionary used to resolve the type OID if not explicitly provided by the codec.