Make autosave save mapdata and artifacts properly

Fixes #1175