Use composition to implement tagged union in response

C part still uses conventional tagged union.
Use composition to implement tagged union in request too.

C part still uses conventional tagged union.