Fix C# codegen of optional fields