Fixes to the problem of NULL equality in the selector fields.

Fixes for issue #25.  Doesn't fix Sqlite (yet).

One note - the "uses nil selectors (another way of checking)" spec is now failing in Postgres - the Date value being returned is in a different format than expected.  I'm not sure if this is a problem or not :)