fixed parsing of embedded arrays