THRIFT-5685: Revert "THRIFT-5601: Fix forward typedef in go compiler"

This reverts commit b39370ec3bc96d201bbc82fbde136f98ae605ed1, and also
adds a test case for THRIFT-5685.
5 files changed