ND2: check the array size before allocating an array

See
http://lists.openmicroscopy.org.uk/pipermail/ome-users/2012-December/003484.html
ImageInfo: do not allow the ImageViewer to close the reader

Fixes #10076.
FV1000: better handling of renamed files

Fixes #9851.
Only use a MinMaxCalculator if we need the min/max values

MinMaxCalculator imposes a substantial overhead on calls to openBytes,
so avoiding it when possible means that non-autoscaled images (e.g.
virtual stacks) will open more quickly.
Minor cleanup of loci-plugins tests

Includes removal of commented-out code, proper logging usage, and a few
speed improvements.
Prevent int overflow in sample count calculation

Fixes #10050.
ND2: catch potential long overflow

d79a091 should have included this.
Revert "Do not strip newlines from XML"

This reverts commit 854d331fc3c067fa300560d9795a8a329ed4cee6.
Merge pull request #313 from melissalinkert/sprint4-bug-fixes

Sprint 4 bug fixes