Fix implementation of `!=` for `HashMap`, `RingBuf` and `TreeMap`