Compile SQL: fix: map conditions on set-statements to their original selectors
Compile SQL: when de-referencing set-statements check type of objects
Compile SQL: When a selector uses '*' as type, replace by possible types