Additional sanity checking for redimension() arguments.