IMO the column of pike in Fig 16 is bent simply because it naturally bends that way when the front element wheels to contact X. It is not a special thing allowed by the presence of Z.
In your example,
SSSS
SSSS
PPPPBBBB
PPPPBBBB
PPPP
PPPP
you might be able to use two wheels in opposite directions to get your pike column bent enough so that the rear element avoids the bow when you use the sideways shift/pivot to line the front element up. It might take quite a bit of jiggling about to discover if it is possible. I reckon advance a bit, right wheel, advance until left corner is level with the enemy front edge, left wheel to contact, shift right to line up might do it.
However, it would be simpler just to move straight ahead, then wheel 90 degrees into the flank of the spear.