I have reversed them, so that when I reshape the data before passing it to the aggregator function, the first coordinate to collapse is 'at the end' of the cube's shape. I will add a comment now.

I have changed everything for the tests, so do you want me to commit the changes now or wait until you are finished?