[Swift2Thrift] Fix some errors