Fix: Hashcode of subclasses now respected and validTo is not used in
comparison or in the natural id any more.