ImageMetadata: lookup length on AxisType

AbstractImageMetadata now properly looks up axis length using the type
of a CalibratedAxis, and not the CalibratedAxis itself (which would
always return null).

Added down the middle testing to MetadataTest to cover this bug.