Code for verification of packed/unpacked array