Avoid the need to iterate over every curve, and only iterate over the cyclic attribute if it exists. This removes the check that avoided creating cyclic segments for curves with only two points. If that was necessary, some of the complexity would return, but the new `array_utils` function wouldn't be necessary. Pull Request: https://projects.blender.org/blender/blender/pulls/113814