More validation in find_edge_segments() and minimize_line() - fixes #44