add helper callGetIteratorRange

It is a simple helper function that allows to retrieve a range of element from an iterator, used in https://github.com/fdecampredon/es6-destructuring