CTest: use const iterators
Merge topic 'ctest-fix-run-serial' into next

ae4a0ef CTest: use const iterators