Use OrderedDict in spatiotemporal_cubes and test.

This should make the method and the unit test deterministic.