Fix a few minor typos + small reporting change.
Fix some variable hiding warnings.
Fix some unitinialized values.
Fix a pointer ARRAY_SIZE() compare (eek.)
Fix some overflow/null deref warnings.
Fix some correctness warnings.
Merge pull request #3148 from unknownbrackets/warnings

Warning fixes