Bugfix for dash patterns

Fixed a bug where a border with a dash pattern (e.g. [0, 0, 1, [2, 3]])
would fail to write.