core.py: Package.__setstate__(): prevent unnecessary re-save