Fixed bad recursion in _replace_function_stringify_objectid_json