The Zigzag Path of Buoyant Magnetic Tubes and the Generation of Vorticity along Their Periphery