optimized 'set numVertices' loop in VertexData (closes #406)