Add support for ie8

Related to #1321

Add `map` and `filter` helpers and avoid using `indexOf`.

I based my changes on last stable version (0.35.0) but it looks like the dev branch master is way ahead of 0.35.0: where is the stable branch? I did not commit the build, should I?