The previous PR handled the case where the LHS of a logical was compound, but didn't handle compound RHS values. This is fixed now.