added basic support for unmarshaling (u)ints and strings