Fixed bugs in test-purpose C# codegen about array