Store permanent magic effects in savegame (Fixes #1648)