Extend RectangleIntersection test for internal holes touching edge

Also fixes one case of boundary edge being found in the last portion
of an inspected linearring.