THRIFT-2897: Implement hash and isEqual: methods.