Fixing issue 1478 related to Array.pack.