add "..rest" pattern when working with arrays (not ES6 compliant yet because of sweet.js bug)