pt_diagrams: reduce consecutive stops with the same name to one stop