Midpoint of polylines

I’ve not tested lately, but a while ago I noticed that there is a difference between the API and Dynamo in this approach. While in the API each segment of a Polyline starts with a new parameter, Dynamo uses one parameter for the whole Polycurve.