make archiving and unarchiving a form properly handle commtrack data

+ basic test
Merge pull request #3192 from dimagi/stock-archive

make archiving and unarchiving a form properly handle commtrack data