Mark the "val" variable in json_object_object_foreach as unused so the compiler doesn't complain.  Fix warnings in the testReplaceExisting test.