Remove unnecessary calls to `Array.slice()`.

Closes #152.