Add SqlNull, format { foo: null } predicate into foo IS NULL

Also tighten up argument validation a little bit.