Expand dotted array to multidimensional array.