replace array() with [].  Fix a logic mistake in naming the fromNativeUnitFactor variable.