Allow using Binary as hash keys.

See Mongoid issue mongoid/mongoid#3780.