Better error message on using a multi-dimensional RDom as single-dimensional