Add bool? predicate

This commit adds a "bool?" predicate and associated tests.