Follow up work on #8852 and #9276 making View take mdspan-style template argument. This PR makes sure that subview propagates/preserves the arguments of the original view.
This will retain the index_type when calling subview with a View that uses mdspan style template args. It also will get some optimizations, our current subview doesn't get because this new version more directly aligns with submdspan.
The added test spells out the difference in return type explicitly between new and old style template arguments.
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.