Classical topological order in the kinetics of artificial spin ice