Only autosave modified items

Fixes #4