remove duplicate nodes

prevents inserts of broken ways with only two identical nodes