Ok, got my working solution so far. I had an arraysEqual function written out, but the solution in the stackoverflow works well and is easier to read. And thanks michoel for the CRX tip; that really helped. The exporter extension is in SS1.0, but was easy to translate to SS2.0