added function to allow multi-dimensional arrays in params