Fixed #236 -- added checks for 'not X in L' and 'not X is Y'

related to enhancement #236