Fix for savegame compatability breakage relating to monster IDs.

PR'ing for AtomicDryad

I tested both this and #3342 on an old savegame. This seems to work, whereas with #3342 there still seem to be problems(turret disappeared from kill list).