Duplicates any mock objects before serialization. Otherwise, serialization will fail because methods exist on the singleton class.
[Validate]