OMEXMLMetadataService: fix index calculation

The index when converting a String dimension + zct values to an array
was being updated too frequently, causing an index out of bounds
exception.

Fixed by only updating the index value for ZCT positions.