Deceleration of arbitrarily magnetized GRB ejecta