Make typehandling in RPCTransform more consistent.
Some more TypeUtil usage simplification.
Nice, found a way to prevent double return value declaration.
Some more fixes for special cases.