The createUnit command, in its main syntax, has a placement type parameter that controls the placement behaviour of the new unit. One of the valid types is "FORM", which is supposed to place the unit according to the group formation. However, "FORM" currently just behaves like "NONE".
The "FORM" placement type should be fixed to place the new unit in formation.