TIFF: fix tile reading when the tile overlap is non-zero

Fixes #10356.
Trestle: correctly set the resolution count
Trestle: only set the resolution count if resolutions are unflattened

Conflicts:

	components/bio-formats/src/loci/formats/in/TrestleReader.java
Trestle: fix openBytes' behavior when resolutions are unflattened

Conflicts:

	components/bio-formats/src/loci/formats/in/TrestleReader.java
Trestle: one more fix for unflattened resolutions
Trestle: only parse mask data for non-OME-XML stores
Add missing import
Add a few comments explaining the overlap calculations
Fix compile error
Merge pull request #401 from melissalinkert/rebased/develop/trestle-fixes

Trestle fixes (rebased onto develop)