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

Also, remove nameless stops.