SI-6605: This change extracts TagKeys used currently as string constants.
In addition to making the code more typeful and less error-prone, this allowed
for another refactoring: when all scaladoc tags are statically known it's not
necessary to track them at runtime, consequently the code that operated on
mutable maps is refactored not to, with code simplification and minor speedup.