Allow 0 and 1 to be used as bools in predicates
Merge pull request #772 from realm/tg-bool-0-1

Allow 0 and 1 to be used as bools in predicates