Implement proper stroke hit-testing for all variations of joins and caps.