[C#] Add marshaling logic for array C# -> C conversion