Make `ensure_packages` an `InternalFunction`
Make `ensure_packages` an `InternalFunction`

To preserve original behaviour of the created package(s) being contained
within the class that called `ensure_packages`, the function needs to be
an `InternalFunction` and call `ensure_resource(s)` with the correct
scope.

puppetlabs/puppetlabs-stdlib