Fix memory corruption and leaks in Character

Multiple calls to loadScript would not delete Character::interactFunc
leading to memory leaks. Additionally it needs to be reference counted
or Character made uncopyable.