[datatype-number] Fix boolean edge cases