If a hut (haven't tried it with other structures yet) is selected before it's destroyed by enemies, you can spawn infinite units from that location out of nowhere. They cost nothing, not even housing space. But if they die, they count as dying units. So if it says you have 130/150 units and you spawn 100 glitch units and 30 die, it will say you have 100/150 units, but you'd really have 200.