Added inst lookup by MetadataID, bugfix in VarMarketEntityDDF