Fix final output

Previously, the pkg_stat structured data was laid out a bit differently.
Now that we changed the format of that structured data, we must fix the
final out iteration as well.