SI-7120 Erasure must honor typeref prefixes

Erasure was discarding these, which led to unnecessarily
wide types in quite particular circumstances. This showed
up as a double definition error in the reported bug when the
bridge method clashed with the erased signature.
remove unused imports
Shadowed Implict typo (fixes no issue)
Fixed error in reflection API docs about linearization order on method baseClasses
please ant with filenames, add comments
Merge pull request #2133 from som-snytt/typos-2.10.x

Shadowed Implict typo (fixes no issue)
Merge pull request #2143 from heathermiller/docs/linearization-typo

Fixed error in reflection API docs about linearization order on method baseClasses
Merge pull request #2120 from adriaanm/patmat-refactor

refactor the pattern matcher into smaller files
SI-7171 Consider prefix when assessing type finality.

`Type#isFinalType` determines if a type could have a
non-bottom subtype. This property is exploited by
the pattern matcher to flag impossible patterns.

This check was ignoring the type's prefix, and
incorrectly deemed that `T#A` in `trait T { final class A }`
was a final type. But it could have been subtyped by
`U#A` where `U` <:< `T`, or, more simply, by `T.this.A`.

Now, type finality requires that the prefix is stable.

The existing test cases in neg/patmat-type-check.scala
still correctly flag incompatiblities.

`isFinalType` is also used by some code that massages
pattern matches post specialization. That is actually
either broken or obsolete under virtpatmat, I've opened
SI-7172 to invesigate that.

It is also used by GenICode to determine whether to emit
the appropriate equality checks that are correct in the
face of boxing. It is possible that this change will force
the slow path in some rare cases, but it won't affect
correctness.
Merge pull request #2157 from retronym/ticket/7171

SI-7171 Consider prefix when assessing type finality.
Merge remote-tracking branch 'origin/2.10.x' into master

* origin/2.10.x:
  SI-7171 Consider prefix when assessing type finality.
  please ant with filenames, add comments
  Fixed error in reflection API docs about linearization order on method baseClasses
  Shadowed Implict typo (fixes no issue)
  remove unused imports

Conflicts:
	src/reflect/scala/reflect/internal/Types.scala
Merge pull request #2162 from paulp/merge-210

Merge 2.10.x into master.
Merge pull request #2125 from retronym/ticket/7120

SI-7120 Erasure must honor typeref prefixes