Modmanager removing duplicates: Use a standard looping pattern.

This is hopefully easier to understand and this piece of code is not
critical for performance, so let's just have it written as easy as possible.
Merge pull request #1109 from stefanbeller/modmanagerfix2

Modmanager removing duplicates: Use a standard looping pattern.
Merge pull request #1108 from stefanbeller/master

Fixing nearly all of the MS Visual Studio warnings
Fix remaining warnings
Merge pull request #1110 from igorko/master

Fix remaining warnings
Fix some comments
StatBlock: Move code from ctor to init list

activated_powerslot, on_half_dead_casted are already part of the init list,
no need to have it twice.