Draft: Fix dashes and mesh gradients in drawing code
The dash setter was not running through the draw context, which prevents the drawing engine from being changed without breaking dashes.
And the mesh gradients were converting to RGB way too early making it dificult to use other color spaces in mesh gradients. Optional used because Color can not be constructed in an array.