Dynamics of polar vortex crystallization