While it could be useful, it feels a bit overcomplicated and the AI would need a lot of work if it was going to utilize such a feature. By overcomplicated, I refer to the hassel of finding a placement for units. And resources (such as trees) can't be used because workers automatically use nearby resources of the same type when harvesting. So it has merits, but I'm not sure if this feautre would be entirely useful.
A more practical use, I suppose, might be having environmental objects damage units, but that would be even more complicated, since we are limited to 10 different objects.