Fix tiled TIFF reading and writing

Required for http://trac.openmicroscopy.org.uk/ome/ticket/11850.