Added ability to pack and unpack arrays.
Added test for pack and unpack Model functions