The return type is PolyOrientedCurve2D<?>, shouldn't it be PolyOrientedCurve2D<?...
Appears to be missing copying the flag from original curve post-transform. Using...