Use custom array/slice implementation

Fixes #159 

This fixes the issues with `NodeList` objects and optional arguments in IE8.