Treat integers 1 and 0 as true and false

Yep, we missed that case before :)