Each foreach filter generator

When using filter().each() or filter.forEach() on arrays, things go smoothly.
However, when using it on a generator function with 'get' and 'length' specified then each and forEach
won't access all the elements.

I found the l--; statements unnecessary. So did the automatic test case.