Fixes to appropriately handle passing a SQL array to a C function.