[Toolkit.Graphics] Fixed memory garbage generation in GeometricPrimitive drawing