Fix issue with curve tangents in rare edge-cases.

We should fix Curve.evaluate() for these instead.