Scala parser cuts last bracket

In scenario [mirror.mkToolBox(options = "-Yrangepos")](http://stackoverflow.com/q/25547149/651140):
```scala
libraryDependencies ++= Seq("org.scala-lang" % "scala-compiler" % "2.10.4") map {
    (dependency) =>{
        dependency
    }
}
```
Scala parser create tree with wrong RangePosition. In method: `scala.reflect.internal.Positions` `def atPos[T <: Tree](pos: Position)(tree: T): T` if the tree.pos is assigned - `pos` with correct `end` is ignored. So for the same tree method now check - if flag Yrangepos is set - and then replace `end` position of statement.
I compiled some projects with this version of scala - and code works,  but I think - acceptance tests are needed.

For scala 2.11 the trait Positions was rewritten. For scala 2.10 I do not have fix. It is needed for https://github.com/sbt/sbt/issues/1606