View helper fails when run via mutating array

It appears that this is related to the `@index` value changing, causing a parameter mismatch in
`compareHelperOptions`.

Failing unit tests attached.