Fixed some issues in find_edge_segments() and loft_to_grid(). Appears to fix #39