Fix types for `remove` and friends.

A few of these had unnecessary uses of type variables.
The type for `remove*` was unsound.

Please merge to v6.0