Renamed string constant for replace-patch and added patch for add and remove.
Fixed behaviour when items were added and removed in the same request for json arrays.
Added unittest for testing adding and removing items in the same request and generating patches (#2454)