THRIFT-2417: Make union types partial classes

Patch by Jake Luciani, Reviewed by Jake Farrell