Allow use of `0` as a value; related test

Useful for when the input type is `number`;