Simplified some logic around serializing custom objects.  YKJSON will now try to serialize keys as well as values