fix set intersection processing
error reporting tests: test empty sets and recursive set definitions