Returns a function to serialize object values into strings
first object to serialize
second object to serialize
map to store functions
Returns a function to serialize object values into strings