Added some optimizations for BooleanOps when rhs is a constant true or false