bugfix: if o in getVertexClass(Object o) is a vertex, then its VertexClass is returned. Otherwise o is the name of the requested VertexClass.