pkg2/resolve: small versionweight simplifications