Find dimension in dictionary which corresponds to array dimension.
Dictionary of RNMRTK parameters.
Dimension of data array.
Dimension in dic which corresponds to array dimension, dim.