Add support for nested arrays in the json manipulator, fixes #3296