Add assertions to quiet analysis warnings about array bounds.
In the partial_sort tests, the N >= M assertion is just a good sanity check, to detect bogus testcases. MSVC's /analyze needs to see the i < N assertion explicitly, otherwise it worries that array[i] might be out-of-bounds. I gave those ones comments because they are technically redundant.
In eval.pass.cpp, the assertions simply say that we aren't going to try to access arrays out-of-bounds, which I assume is guaranteed by the logic of the test, but this is far from obvious, so the assertions are valuable in their own right.
Fixes MSVC warnings of the form:
warning C6385: Reading invalid data from 'array': the readable size is 'N*4' bytes, but '8' bytes may be read.
These warnings are valuable, so I'd prefer to suppress them locally instead of globally, especially given that so few places are affected.