Bug-fix: during upgrade, don't install a package as explicit if it has been installed as implicit.