Added support for thick arcs.

Currently, thick arcs only join correctly with straight segments.
Changed the semantics of closing thick paths to first draw the final
line, then do a zero-length close command.