SI-6896, spurious warning with overloaded main.

Make sure there's no legit main signature before issuing
any warnings about missing main methods.
SI-6897, lubs and varargs star.

Don't allow lubs to calculate refinement types which contain
a varargs star outside of legal varargs star position.
SI-6911, regression in generated case class equality.

Caught out by the different semantics of isInstanceOf and
pattern matching.

  trait K { case class CC(name: String) }
  object Foo extends K
  object Bar extends K
  Foo.CC("a") == Bar.CC("a")

That expression is supposed to be false, and with this
commit it is once again.
proper elementClass for WrappedArray

(backport of 45ef0514e, part 1)
avoid reflect overhead of certain array instantiations

the manifests for Any, Object/AnyRef, AnyVal, Null and Nothing
now have their `newArray` methods overridden to avoid reflective overhead
of array instantiation.

(backport of 45ef0514e, part 2)
Merge pull request #1840 from paulp/issue/6911

SI-6911, regression in generated case class equality.
Merge pull request #1835 from paulp/issue/6896

SI-6896, spurious warning with overloaded main.
Merge pull request #1834 from paulp/issue/6897

SI-6897, lubs and varargs star.
Merge pull request #1842 from adriaanm/backport-1821

Backport 1821
Work in progress
Add test cases
Don't reify packages as Select

BUILD FAILED
/opt/git-repos/scala/build.xml:2588: java.lang.RuntimeException: Test
suite finished with 10 cases failing:
/opt/git-repos/scala/test/files/run/t5225_2.scala [FAILED]
/opt/git-repos/scala/test/files/run/t6223.scala [FAILED]
/opt/git-repos/scala/test/files/run/t6591_6.scala [FAILED]
/opt/git-repos/scala/test/files/run/freetypes_false_alarm1.scala [FAILED]
/opt/git-repos/scala/test/files/run/reify_ann2a.scala [FAILED]
/opt/git-repos/scala/test/files/run/t6591_4.scala [FAILED]
/opt/git-repos/scala/test/files/run/reify_newimpl_30.scala [FAILED]
/opt/git-repos/scala/test/files/run/t6591_5.scala [FAILED]
/opt/git-repos/scala/test/files/instrumented/inline-in-constructors [FAILED]
/opt/git-repos/scala/test/files/instrumented/InstrumentationTest.scala [FAILED]
Removed redundant case Select(qual, name) if qual.isType
Remove redundant case Select(This(_), _)
There is assert(qualifier.isTerm) in Select
Qualifier can't be a PackageObject either.

BUILD FAILED
Test suite finished with 7 cases failing:
/opt/git-repos/scala/test/files/run/t6591_6.scala [FAILED]
/opt/git-repos/scala/test/files/run/t6591_4.scala [FAILED]
/opt/git-repos/scala/test/files/run/reify_newimpl_15.scala [FAILED]
/opt/git-repos/scala/test/files/run/reify_newimpl_30.scala [FAILED]
/opt/git-repos/scala/test/files/run/t6591_5.scala [FAILED]
/opt/git-repos/scala/test/files/instrumented/inline-in-constructors [FAILED]
/opt/git-repos/scala/test/files/instrumented/InstrumentationTest.scala [FAILED]
Fix t6591 5 & 6 tests
Change debug message
reify_newimpl_30 incorrect behaior
In these cases reification need to be adjusted