pan/mdg: Defer modifier packing until emit time