Pion collectivity in relativistic heavy-ion collisions