RLCMAC: Fix encoding/decoding of 'union' types

We must supply hand-written C++ functions for encoding/decoding
the union types.
2 files changed