allow to sync objects restored from trash
Finish support for "restore from trash"; fix 2 bugs; more formatting