Pad the typetag string properly when encoding a list of arguments

Signed-off-by: John Else <john.else@citrix.com>
Add a function to read an argument list

Signed-off-by: John Else <john.else@citrix.com>