adds union/current-field-id to get a union's set field
implements field-ids to get the IDs of a Thrift type's fields