Add support for multidimensional arrays