THRIFT-1959: Add Union TMemoryBuffer support
Client: csharp
Patch: carl