Fix permute handling when vectorising scatters