Improve spline/bezier tesselation

Some performance improved probably.