Curve.Simplify broken :(

If it is about Polylines only:
as far as I know, Reduce Polyline uses the Douglas-Peucker Algorithm which is simple to implement.
You can adapt that algorithm for your custom needs.