Improved CustomGeometry API for vertex updates, and possibility to make the vertex buffer dynamic. Closes #415.