fixed nested arrays, issue #50