Also adds a test that checks that `ArrayBuffer.isView` appropriately narrows its argument to `ArrayBufferView`. Fixes #5308.