make sure the raising version of `cast_or_unify` is used when trying to find array access (closes #3432)