Current svn sources (revision 77 / alpha5). When attempting to build a building where it wont build, for instance, resources are not refunded once the builder realizes it can't be put there. Same is true for summoner when you cancel summoning.
Daniel