Allow players to track both herbs and minerals at the same time

Note: The following are client limitations and cannot be coded for:
      * The minimap tracking icon will display whichever skill is activated second
      * The minimap tracking list will only show a check mark next to the last skill activated (sometimes this
        bugs out and doesn't switch the check mark. It has no effect on the actual tracking though).
      * The minimap dots are yellow for both resources
Merge pull request #12954 from MrSmite/ResourceTracking

Allow players to track both herbs and minerals at the same time
Core/Misc: Refactor scripts to fix static analysis warnings

Third batch of fixes targeting 100 issues reported by Coverity