Fixing bugs related to arc joints.

- Fixed a problem with negative radiuses breaking the intersection code.
- Fixed mixed sizes in circle-circle intersection breaking intersections.
- Improved error reporting when trying to draw thick lines without a width.
- Fixed arc_to not giving the required negative radiuses for
  right-bending arcs
- Added unittests for these bugs.