fix reversed order of operands in constant calculation for 'in' and 'not in' operator