"unpurge" pkgs marked for purge in pkg.installed states

See #10719 for more information. This pull request will make pkg.installed states set the selection status to ``install``, effectively "unpurging" them.