test: Remove all `~[T]` from tests, libgetopts, compiletest, librustdoc, and libnum

r? @brson