THRIFT-2897: Implement hash and isEqual: methods

Client: cocoa
Patch:  Jim Speth

This closes #330