Fix bugs in equals and hashCode

`equals` and `hashCode` of `Timestamped` are not correct. I just used eclipse to generate a new version.