Hmm, reading what I just wrote, I'm betting having the peasant sit on the resource didn't make it stay after all - it just was something I tried, and believed it would make the building stay, but the bug with getting income even when the building vanished is probably what was really going on.