Change `while` to only accept booleans instead of truthy values.

See discussion in f3e0d0f42440304302c651a3a63b49cb8ffde9f7 where we made
the equivalent change to `if`.