Fixed `is` when checking for booleans, and improved tests.