Issue with overlapping contours in generated SVG table

When generating SVG table from Color layers, contours are merged together in one SVG path (presumably when they have the same color), but this gives the wrong rendering when the contours are transparent.

Here is the font:
AntiTest.glyphs (73.5 KB)

And this is how the س glyph is rendered when the SVG table is exported:
image

And this is how it should look:
image
(this is how it looks in Glyphs and when the SVG table is not exported)

Another issue, looking at the exported SVG table, it seems to include entries of the COLR layer glyphs, but these are only needed for the COLR table, so it increases the file size needlessly.