rP26520 removed a setupPositionAndHandleRotation call in the formation yielidng outOfWorld formations when a formations tries to move back into formations after constructing something.
Restoring this call in an appropriate manner. Notice that we need to force the rotations in some cases.