Changed implementation of Serialize::EmitDiffPtrID and