ES spec-compliant shim for TypedArray.prototype.slice