Various additional unittests and fixes.

- Improve error handling when joining arcs to arcs.

- Add a test on joining arcs of different widths. Add a way to run a
  unittests based on a saved svg file.