CZI: be less aggressive about closing file handles
Fix typos in null checks
NIOFileHandle: cache file length when possible

This prevents many calls to raf.length() when working with read-only
files (where the length is expected to not change).
Improve SubBlock indexing

This prevents us from having to loop over the SubBlock list
getSeriesCount() * getImageCount() times.
Whitespace fixes
Prevent redundant file locking

FileChannel.read(...) and FileChannel.position(...) each lock the file;
by calling read(...) with an extra argument we now have at most one lock
per call instead of two locks.
Stop parsing segments if a 0-length segment ID is found
merge dev_5_0 -D org: PR 1129 (setId performance changes for Zeiss CZI)
merge dev_5_0 -D org

Repository: openmicroscopy/bioformats
Excluded PRs:
  # PR 1122 melissalinkert 'Update POM version numbers to 5.0.2' (label: exclude)
Already up-to-date.

Merged PRs:
  # PR 1129 melissalinkert 'setId performance changes for Zeiss CZI'

Generated by OMERO-5.0-merge-daily#683 (http://ci.openmicroscopy.org/job/OMERO-5.0-merge-daily/683/)