Fix select null and zero.

Closes #29.