actorlib/structuring: fix pack_layout