Fix channel count when exporting RGB images

Fixes #12091, #11569.
Merge 'origin/develop' into rebased/develop/memoizer-errs
Fix NPE by passing imageCount to Coordinates

On deserialization from the memofile by Kryo, a call to hashCode
failed with a NPE since no ZeissCZIReader instance was available.
Rather than relying on the outer class, image count is now passed in
actively for use by hashCode.

Where possible, other inner classes have also been made static.
Several remain which are not.
Add System.out calls in main
merge develop -D org: PR 983 (Woolz: make sure the service is initialized when calling openBytes (rebased onto develop))
merge develop -D org: PR 1123 (Add a reader that accepts a file containing a file pattern)
merge develop -D org: PR 1154 (Leica: prevent exception when linking EmissionFilter)
merge develop -D org: PR 1155 (Memoizer errs (rebased onto develop))
merge develop -D org: PR 1164 (Add modulo support for LI-FLIM data)
merge develop -D org: PR 1170 (cmake: Enable CMP0042 @rpath usage for MacOSX)
merge develop -D org: PR 1174 (CZI: prevent AIOOB exception when populating position metadata (rebased onto develop))
merge develop -D org: PR 1175 (Fix channel count when exporting RGB images in ImageJ)
merge develop -D org

Repository: openmicroscopy/bioformats
Excluded PRs:
  # PR 1162 melissalinkert 'AFI: populate magnification and physical pixel size metadata' (status: failure)
  # PR 1054 qidane 'Additional annotation points throughout the model' (exclude comment)
  # PR 1161 sommerc 'Initial CellH5 Reader class' (user: sommerc)
  # PR 816 melissalinkert 'Add support for multi-channel Volocity Clipping datasets' (label: exclude)
  # PR 1015 qidane 'Messy binary' (exclude comment)
  # PR 1136 melissalinkert 'Add initial support for reading BinaryOnly OME-TIFF datasets (rebased onto develop)' (label: exclude)
  # PR 858 melissalinkert 'Initial support for Veeco AFM data' (label: exclude)
  # PR 1176 rleigh-dundee 'xsd-fu: Use package namespaces throughout and consolidate commands' (status: failure)
  # PR 1141 LeeKamentsky 'Reader for Amaris FlowSight .cif format' (label: exclude)
  # PR 857 melissalinkert 'Initial support for Zeiss .lms files' (label: exclude)
  # PR 978 berl 'Add writing of .v3draw format for easy loading with Vaa3D.' (user: berl)
Already up-to-date.

Merged PRs:
  # PR 983 melissalinkert 'Woolz: make sure the service is initialized when calling openBytes (rebased onto develop)'
  # PR 1123 melissalinkert 'Add a reader that accepts a file containing a file pattern'
  # PR 1154 melissalinkert 'Leica: prevent exception when linking EmissionFilter'
  # PR 1155 joshmoore 'Memoizer errs (rebased onto develop)'
  # PR 1164 melissalinkert 'Add modulo support for LI-FLIM data'
  # PR 1170 rleigh-dundee 'cmake: Enable CMP0042 @rpath usage for MacOSX'
  # PR 1174 melissalinkert 'CZI: prevent AIOOB exception when populating position metadata (rebased onto develop)'
  # PR 1175 melissalinkert 'Fix channel count when exporting RGB images in ImageJ'

Generated by OMERO-5.1-merge-push#296 (http://ci.openmicroscopy.org/job/OMERO-5.1-merge-push/296/)