Bug fix: where(:field.defined => value) should cast value to bool

Closes #105