ElementHelper.areEquals should not compare classes
e.g. Vertex and TinkerVertex might represent the same thing.