feat(filter): Array.filter function should receive a value and index

Modification of filter.filter to pass the index of the current iteration as the second argument which is similar to how the native implementation of array.filter behaves.

Closes #654