better compatibility for Canvas.context.setLineDash
Merge branch 'master' into 8-bit