Replace packLength function with UintPrinter structure.
Added unpackList function.