Fix bugs in equals and hashCode of Timestamped

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