Refactored code.
Renamed tests for adding and removing items on array in typed json.
Fixed incorrect code when an item in an typed json array was removed or the whole array cleared. Solves #1788