Fix issue with recursive call of Curve.getIntersections().
Improve Curve#getIntersections() by avoiding further subdivision of flat curves.