Changed OnlyOneTrue logic

changed the logic of OnlyOneTrue, to be one file instead of two
different ones for Vertices and Polygons, and also to be possibly usable
outside of PolygonEditor.
Minor changes