Optional
the serializer will check if keys are valid.
false
serialize will not emit undefined fields note that the driver sets this to false
true
the index in the buffer where we wish to start serializing into
0
serialize the javascript functions
the serializer will check if keys are valid.