You wind them in a form with flat sides and exit the middle wire at what will be the outside portion of the coil.
The sides of the form keep the coil flat, while exiting the wire at a turnaround rather than a between-poles secion causes the winding to become marginally wider radially at the turnaround - where it won't interfere with a coil beside it.
Winding with copper strip is more problematic: You could fold the stip on 45 degree bends to bring it up and then out parallel to the surface - and you would do that in the outer turnaround so the magnets won't cause big eddy currents in it. But it's still going to make the form thicker by the thickness of the strip plus the clearance under it, in the region of interest. (This sort of thing is done for the field windings of automotive starter motors, which are generally wound with copper strip.)
If I was going to cast a stator with strip-coils completely imbedded I'd use an donut-shaped intsert in the final casting form to make the region where the magnets pass (plus a bit more for airflow) thinner on the side where the strips make their exit, so the magnets can sink below the surface on that side if necessary to get the gap right. But I'd prefer to leave the outer loops un-imbedded (except for a thin protective paint job) to serve as cooling fins for the coils - in which case I'd fold the inner run to end up edge-on to the wind to avoid blocking the cooling air.