1d element refinement fixes

This makes the refiner work with 2D curves.

Merge request reports

Loading