Execute checkpoint in scope for current jsonobject and always use parent transaction (if any). Fixes #1585
Merge branch 'issue/1585' into develop