Expand doted array to multidimensional array.