Titi has a point. It would be nice to say
createUnit('unit_name', 0, pos.x, pos.y)
ie:createUnit('daemon', 0, 61, 143)
And this could simply make a unit (the daemon) for faction 0 at 61,143. Glest clearly can recognize locations like this, as I can see from the way the AI log recognizes the locations of where it attacks, sends scouts, etc;
I tried a few ideas, but no success...