Helicity and celestial magnetism