emit_markers_for_path_builder(): Consider closepath at ending markers

If closepath, calculate the last marker angle the same way as with the
other markers. Also fix and enable the respective test.

Fixes #161.
1 job for master in 21 minutes and 3 seconds (queued for 17 minutes and 39 seconds)
latest
Status Job ID Name Coverage
  Test
passed #5362
test

00:21:03