well ive tested, it works on other things besides swarm, and for every building with a docking bay
an intresting thing is, they dont heal from scouts, im not sure why, buildings can heal from surveyors that have the same hp, but for spaceports at least, a scout does not heal