SAMtype extractor should not use avoidance in same class
SAMtype extractor should not use avoidance in same class

When extracting a SAMtype we use avoidance of the class parameters since these
are not visible outside the class. But we should not do that when the SAMType
is extracted with an owner within the class.

Fixes a problem with sammy_scope.scala that was left dormant until now since
RefChecks did not check methods generated by ExpandSAMs.

lampepfl/dotty,sjrd/dotty,dotty-staging/dotty,dotty-staging/dotty,sjrd/dotty,lampepfl/dotty,lampepfl/dotty,dotty-staging/dotty,sjrd/dotty,sjrd/dotty,lampepfl/dotty,dotty-staging/dotty,sjrd/dotty,lampepfl/dotty,dotty-staging/dotty