Add more validation checks and fix Vertex::dissolve