Changed Stream Utils To Use Filter
Changed Stream Utils To Use Filter

Originally some of the logic in Stream Utils was iterating over elements
manually and doing its own splicing and index manipulations. This changes
it to use array.filter so that the logic is simpler.

Change-Id: I2a8d1db9336a574e0992e0de430afd006dea4846

TheModMaker/shaka-player,TheModMaker/shaka-player,tvoli/shaka-player,vimond/shaka-player,TheModMaker/shaka-player,shaka-project/shaka-player,shaka-project/shaka-player,shaka-project/shaka-player,vimond/shaka-player,tvoli/shaka-player,vimond/shaka-player,shaka-project/shaka-player,TheModMaker/shaka-player,tvoli/shaka-player,tvoli/shaka-player