Fix crash when packing a team with custom mons

Also synchronize fastUnpackTeam