Aspects of magnetic fields in the late stages of stellar evolution