Rename {dimension,group}.remove to dispose.

The remove methods are kept for backwards-compatibility.