Spawn position was random - so it was not intended, I am glad you didnt encounter an another spawn bug :D.
Algorithms behind formations arent difficult - a simple mathematical sequence for each vector coordinate. For example the circual formation was only a unit circle and each companion was distributed on a different position on this circle acording to his spawn index.