This fixes cases #101, #102 and #107 for difference (and corresponding inverse versions for intersection)