Recursive reference mapping for the writer now works in .NET 3.5. Simplified writer code by removing .NET 3.5 specific code.