PR19878: If a pack expansion appears within another pack expansion, correctly
deduce any packs that are expanded by both expansions.