Adds NULL support for parameters in Exec.

The `buildCArgs` function did not parse nil values correctly.
I fixed it and added a test for it.