Add serialisation stuff to TemporaryStatModification