Thrift: Check enums. (#451)