Added marshalling and unmarshalling functions for uint32 and uint64

The previous changes for uint support didn't seem to actually marshal or unmarshal the values. This change adds marshalUint, unmarshalUint64 and unmarshalUint32 functions.