fix the memory leaks in xFlowJoWorkspace::getTransformation.
fix pb serialization for bool gate
modify R code to adapt to PB serialization
resolve the conflicting macro 'Free' between R and protobuf