rework test case documentation__check_typos
- make test case more robust (don't abort tests when there is a proc_doc without a "main" section
- improve performance and sanity:
* move invariantes out of the loop
* use built-in hashes
* don't check the same term multiple times
... times went from >15 sec to <1sec