Support reference preservation for ISerializable objects.

Makes it possible to serialize references with ISerializable objects by adhering to the IDeserializationCallback pattern used in the .NET Framework.