Fix the handling of weapons pointers.

Now there no more mem leaks when loading/saving them along with a creature.