Use the Class.name function to set the label name instead of Class.to_s, closes #408

Make it also work with anonymous classes, use the object_id if the class.name is nil
This was needed to get the neo4j-devise test working