CellSens: fix pyramid resolution counts

This prevents an exception when there are multiple pyramids, each with
multiple resolutions.
Fix IndexOutOfBounds exceptions when working with multi-pyramid data
Fix magnification/physical pixel size population for multi-pyramid data

If magnifications are missing for some pyramids, assume that the maximum
magnification applies.