As per https://github.com/servo/unicode-bidi/pull/127#pullrequestreview-1894465527. This doesn't need to be a comprehensive equivalent of `smallvec` / `tinyvec`, as only a minimal set of operations are required.