Fix #388 rasterizing driver drawing the wrong shape types