Polyfill for ArrayBuffer.prototype.slice.