fix the ReplaceObject functions; tighten them up, add some more checks for stability.
fix the ReplaceObject functions; tighten them up, add some more checks for stability.


git-svn-id: ad8080c0dac9953171417b882a4cafa638f6aa75@14 e3330c51-1366-4df0-8b21-3ccf24e3d50e

FSMaxB/mcJSON,mirco/cjson,FSMaxB/mcJSON,splbio/cJSON