[WIP] Steppath and Line2D

Ok, this is a first try to refactor Lines2D  for steps. Submitted as a PR to run the tests. See #1709.