[GeoLib] Corrected implementation of check if Polyline is in Polygon.

The check if a polyline is in a polygon is needed within the SimplePolygonTree.
Lines 153-163 handle two special cases, see documentation in line 152. If the special case is not applicable, the code in the following lines is checking the general case.