widl: Move handling of base type marshaling and unmarshaling to a separate function.

Move handling of base type marshaling and unmarshaling to a separate
function and improve it to support return values.
1 file changed