Set intersect can fail with named types, fixes #310