Fix CASA cube loading

There were bugs in the CASA cube loader, especially incorrect assumptions about the data dimensionality.  This fixes them, and works so far.  Note that it currently includes commits from the previous PR; that will disappear when I merge it.