webfaf2: improve json rendering of related_packages_* metric