THRIFT-1977: Fix to ensure proper C# class names

Patch: Jens Geyer
THRIFT-1995: IDL can generate uncompilable ocde

Patch: Carl Yeksigian