Replaces some uses of int with bool where the int was being used as a boolean.