We could also look at the mosses; it would probably be similar to those.
As for making them a swarm, where does it say they are immune to weapons? I see immune to arcane spells, but not weapons.
We might want to boost those physical ability scores a bit, particularly Con, if we're giving it 9 HD. Do we want to give it any actual attacks, or just the poisonous spores?