Metamorph .nd performance improvements (rebased onto develop)



This is the same as gh-1087 but rebased onto develop.

----

Fixes https://trac.openmicroscopy.org.uk/ome/ticket/11968.  The .nd files from the QA issues mentioned in the ticket should import within a matter of minutes now, not hours.