Fixed serialization to C#.