Partially reverted some opcode changes related to spells
Fixed some possible memory leaks
Fixed iterators data usage in player class
Other code cleanup in player class