Fix to_json recursivity bug

When in PackageListing and going to PackageListingAcls, we want all the ACLs for all
branches not just the first one. This implies that we forward to PackageListingAcls the
fact that we're coming from PackageListing but not that we already have some information
from PackageListingAcls (thus not the complete _seen list).