CellSens: initial support for reading internal pyramids

Fix loop over the number of resolutions

Fix optimal tile size reporting for subresolutions

Do not allow subresolutions to overwrite tile dimensions

Make image reading consistent regardless of the flattened resolution setting

Make sure tile coordinate hash codes are consistent

Fix thumbnail reading for unflattened resolutions