Switch VertexArray to unique_ptr semantics