Fixed ObjectName instance for VertexArrayObject.

The previous implementation failed to actually delete VAOs with
deleteObjectNames, thereby creating a memory leak.