Adding a set of performance improvements

After some Scouting, adding these fixes to boost performance when adding
vertices and generating the Stroke geometry. A heavy test case went from
8,4 to 10,6 FPS on my machine.