Fix compile error from invalid `ArrayHandle`

The compile error happened from incompatible code changes between !2349
and !2374. The former removed the ability to use non-`Vec` values in
`ArrayHandleSOA`. The latter tried to create such an `ArrayHandle`
inside a template function that was called with the SOA storage.
7 jobs for invalid-arrayhandle in 0 seconds (queued for 1 second)