Correct the behavior of LiteralsInCondition

As @whitequark had correctly observed the logical expressions in the
condition had to be checked recursively for literals.