Similar to equals, but checks that object attributes and types are also equal.
If two Index objects have equal elements and same type True, otherwise False.