Fix Empty IEnumerable Parameter

If you pass an empty IEnumerable as a parameter it makes invalid SQL:
```SELECT ((E'{{}')::int4[])```

This adds a test and the fix :)