Implemented additional flag into Geom_TrimmedCurve to adjust or not the periodic curve inside the first period. API of Geom2d_TrimmedCurve is changed according to Geom_TrimmedCurve. Test-case for issue #24411