Handle nulls correctly for all parameters.

Closes #210.
Merge pull request #214 from square/jw/nulls

Handle nulls correctly for all parameters.