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
Metamorph: fix erroneous channel counts

This is what edfc130 should have done in the first place.
Fix compile error
Merge pull request #401 from melissalinkert/rebased/develop/trestle-fixes

Trestle fixes (rebased onto develop)
Merge pull request #402 from melissalinkert/rebased/develop/metamorph-channel-count

Metamorph: fix erroneous channel counts (rebased onto develop)