Stability fix for _verticesToContours function.
Fixed incorrectly working polygonIsConvex function.
Only break up a shape into smaller pieces if it is non-convex.