fixed dimensionality in output array in rfun