fix parsing bugs in arrays of arrays