Remove upstream collection traits.

As per https://github.com/rust-lang/rust/pull/18474