[idl] add ::unwrapped helper for thrift-generated classes [thanks @elen4]