rustpkg: Un-ignore test_install_invalid_external and test_install_invalid

...and, for some reason, some unrelated code.

Closes #9994