better handling of rare instances of duplicate vertices

updates 83856bd