SI-8553 WrappedArray throws exception on lastIndexWhere when index out of range

Adds a check in `IndexedSeqOptimized#lastIndexWhere(A => Boolean, Int)` to begin searching in the end of the collection if `end` is greater than the collection's length.

Discussed in https://groups.google.com/d/topic/scala-internals/-MacXivbY0Q/discussion.