Add Struct.__hash__ method