Made replay files more widely compatible

Now random choices of a character are saved with a direct
reference to the character, rather than just its index in
an arbitrary list.