Analyze: set littleEndian flag correctly (rebased onto dev_5_0)



This is the same as gh-1266 but rebased onto dev_5_0.

----

Fixes https://trac.openmicroscopy.org.uk/ome/ticket/12471.  To test, verify that the fileset from QA 9414 is detected as being little-endian.