The two dash functions (draw_dashed_{line,slur}) set the dash pattern with setdash, but they forget to reset it (so the output looks a bit weird after the first dashed line has been drawn). The attached patch will fix this, but I'd like you to approve it before I apply it. It just throws in a "[] 0 setdash" after the "stroke" command.