Fix handling of arrays for batched operations.