Port ArrayHelper.