Make Magnetic field geometry persistent.

* This fixes compilation problem of XMLIdealMagneticFieldGeometryESProducer.