tests: add test for Base._translate_comps_pkg_types()
simplify groups/envs API methods in Base a lot.

They do not need to check everything (and thus rob the caller of the
propagated exception from below perhaps). Moreover, we are doing many checks
on the command line parsing now.