We didn't test v.stride(r) with r>= rank, we didn't test stride() for layout_stride at all, and we didn't test that the last value in the array overload of stride() is correct.
I added the tests and made the new view implementation match the behavior of the legacy implementation.
The repository is checked out at /workspace/repo. Work only on production
source code. Do not modify tests, CMake registration, CI configuration, or the
grading environment. Use the existing build tree for local verification.