Adjust the way arrays are passed to the C wrapper. For some reason this is necessary now