bug fix: don't explicitly draw final segment of a loop if it is straight

This was causing strange miter joins in some situations.  Fixes #38.
Merge branch 'master' into builder-cleanup