Access to static members of a type via derived types addressed
Things that could/should be constant were made const
Local variables have too wide declaration scope addressed
Code simplifications

There are still a LOT of code smells and bad practices. Will start
refactoring and rewriting some offenders after I found out what is what.