Equality comparers should be serialisable, so as to allow containers using them to be serialisable.