modules/kex: ask pkg.stats to return array value
(cherry picked from commit 920f02bde0f7b6e3484850f4677c603b9c8740c8)