Fix #329: Add `alters_data` to prevent calling save(), delete() and rebuild() from templates