Improve test coverage for Arrays and Streams.

For Arrays.stream(T[]) tests
* Expected results when streaming and mapping
* Streaming and collecting with toArray() returns an identical array
* Streaming and collecting to a list results in a list with the same values
* Providing start and end indices works as expected

Also adds basic tests for Stream.of(T t) and Stream.of(T... t) to
ensure the returned stream contains the expected contents.

Bug: 150642149
Bug: 151111571
Test: atest CtsLibcoreTestCases:libcore.java.util.ArraysTest
Test: atest CtsLibcoreTestCases:libcore.java.util.stream.StreamTest
Change-Id: If9ed6fe160b7a55f0758392da9929d78ee25a293
2 files changed