Added unpackVector and unpackArray functions.
Added UnpackTest structure and fixed found bugs.