libcore: Implement an `Equiv` trait and use it on hashmaps.

r? @nikomatsakis