[Platform] Make instances usable as Hash keys.

Fixes #109.