A trimmed circle ended on a line exactly where an arc started on that line, held there by a point-on-curve tie. Trimming the line away dropped the tie and left the two ends on one spot, untied. remove_curves now ties each point held on a removed curve at one of its ends to that end before the curve goes (found by a local trim fuzzer, 15 -> 12 cases in 2000 seeds). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>