api: let Base.select_group() take pkg_types.