Actually use pkg::params::packages and validate it as an array.