Correct handling of tests on output dimensions of RebinSeq

Previously, the dimensions of the output array were checked
againt the specified dimensions for the *input* array. So it was OK
if input and output arrays were the same shape, but not otherwise.