The Dynamics of Magnetized Gamma-Ray Burst Outflows