Fixing a Vertex2D bug

Vertex2D weren't rendered anymore, because toArray() hadn't been
updated.