WSOTWO-138: Improved equals, hashcode and compare operation for AbstractElement class