Partially addressing #7037
Propose an alternative to the typeid operator.
We will need to discuss impact on tools before this can be merged.
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.