major rework of thrift-serialization, finished thrift code for Tuple, BigInt and JSONData types