add hashing method for metainfo.Info