Vector forEach context fix

Context to be used in forEach. Bonus test for filter to check that it maintains the same functionality.