More performant solution for transpose! with Vectors (see #8726)