Copy over parent style in Item#reduce().

Only really needed for CompoundPath...
Fix edge cases in Curve._getWinding()

Use same rules for lines as for curves, exclude end points of lines. Closes #346.
Merge git://github.com/paperjs/paper.js