Implemented ReferenceArrayCodec.EmitEncode