Set axis units before adding axis to image metadata
Set axis units before adding axis to image metadata

Previously, we asked the ImageMetadata object for its axis of current type, which would lead to a NullPointerException if the axis type was unknown.
Fixes #375.

scifio/scifio