QUnit tests and fixes for OJ.is.bool