Ensure logical not is applied to a unary expression in the correct order.