RFC: add Pkg.patch/minor/major

This adds `Pkg.patch`, `Pkg.minor`, `Pkg.major`, `Pkg.version`, and `Pkg.latest_version` functions similar to those of `Pkg1`, for #4092.

cc: @StefanKarpinski