parrec: support additional dimensions,  autopermute/reshape and variable scale factors