DICOM: correctly reverse endianness when necessary

Fixes #9870.
2008-09: update CustomAttributes to StructuredAnnotations
Try harder to parse original metadata from XMLAnnotations

If the XMLAnnotation does not contain an OriginalMetadata node, then we
look for any nodes that have a "Value" attribute.

See #9905.
Zeiss CZI: fix gain and zoom population

Noticed by Martin Spitaler.
TIFF: handle IFD entry arrays with size 0

Fixes #9929.
Prevent ClassCastException when reading the IFD description

Conflicts:

	components/bio-formats/src/loci/formats/in/MetamorphReader.java

Conflicts:

	components/bio-formats/src/loci/formats/in/MetamorphReader.java
AVI: ensure that MSV1 images are detected as having 3 channels

Fixes the file in cellsens/samples/Fluorescence.
Metamorph: fix compile error

Conflicts:

	components/bio-formats/src/loci/formats/in/MetamorphReader.java
Prevent NPE when parsing XMLAnnotations
OME-TIFF: log isThisType exceptions at DEBUG
Only transform CustomAttributes if it has child nodes
CellR: fix handling of .apl files with "_" in the name

See QA #4789.
Fix conflict resolution that prevented streams from being closed
Merge pull request #321 from melissalinkert/sprint3-bug-fixes-develop

Sprint3 bug fixes develop