Preparing Record and Replay For Save/Export/Import By Implementing Serialization