fixup! Copied TDerializer from thrift verbatim