Add cJSON_Duplicate() function from upstream source.