Add optional joining behavior to PathItem#closePath() again and use it in #setPathData().