Code: Various analysis fixes.
(only 3 warnings left)