Set global min/max according to pixel type. (see #11840)

Fix array out of bounds when viewing image.
See https://trac.openmicroscopy.org.uk/ome/ticket/11840

 * Log as nhattersley
 * Open images SenP6 siRNA > Hec1/Aca/Tub II > image ID 3777835, 3777836,