[FIX] Fixes to more issues.

Found by Coverity, most are uninitialized memory problems.