add bounds check to ByteVector<Alloc>::slice