Changed parameter order for value and parent to follow same order as delegates on templates.
Issue 1676 (iterator recreation bug) reproduce.

https://github.com/Starcounter/Starcounter/issues/1676
Changed incorrect move of jsonarray between two jsonobjects and replaced it with manual creating and copying.
Merge branch 'develop' into issue/2076