There must be some relevance to him being there though, I mean would kishi reveal it to be Yamato, just for Yamato to play no part in the rest of the war?
Spiral Zetsu was controlling Yamato to strengthen his Mokuton, and after Spiral Zetsu released Yamato, he was directly affected by MT