Added RootCodecRegistry.withCodec(Codec<T>) method to make it easier to create a copy of an existing registry with one additional codec

  JAVA-1445