transformations will always be defined at this point of the code.
Fix spelling mistakes.
Move segment merging logic from Path#closePath() to Path#join()

Closes #435