Add GetEffectImmunityHook and EffectImmunity

accumulator.
Update EffectAccumulator and VersusInfo

- Add is_valid guards to the item and spell code.
- Add check to handle NULL parameters to VersusInfo
Update effect and ip creation functions...

- NOTE: they are still basically untested.
- Remove a spurious effect header.