Be more paranoid about whether slices form a rectilinear volume.
Sort by instance before collecting any other information.

The position is set from the instance if there is no other location
information in the file, so it is important to go through the files
in instance order when collecting position information.