Fixed compiler warnings and clean up of some code in spell_effects.cpp