Simplified hashCode()

The hashCode implementation is now much simpler and does no longer cause a recursive hashing of all predecessors of an OSD.