Fix issue in recent Path.Line constructor optimization.

Line paths should not be closed.
Merge branch 'refs/heads/master' into apply-matrix