Code: More analysis warning fixes

/cc @xzyfer, @mgreter