Add capstyle and joinstyle properties to Patch.
Use projecting caps for axes spines (fixes #2542).
Add test for new spine capstyle, workaround PDF rendering errors in low-dpi tests.