changes the equals and hashcode to uset getName instead of getId on AbstractDistributedObject class

In reference to the issue https://github.com/hazelcast/hazelcast/issues/1704 , this simply changes the implementation of hashcode and equals to use getName() instead of getId()