api: added checking of invalid metagenome type combinations in matrix