Fixed intersectsSegment that takes a polygon.

closes #213