Fix queries using boolean literals

Fixes OpenTreeMap/OpenTreeMap-Android#55