Implement VersionedSampler equals method