Added unittest for rootobject patch.
Fixed incorrect jsonpatch for whole document. Solves #2131
Fixed incorrect unittests and added unnamed properties in tests for jsonpatch.
Merge branch 'issue/2131' into develop