Some more bugfixes. Collinear segments processing.