Get the ArrayBuffer out of a TypedArray, robustly.