Importer fixes

In the process of migrating our 250+ categories and 2600+ products to Prestashop, the importer gave me some work to do, so I fixed some stuff.

There is at least a functional change here (see the individual commit description for more info for what I considered "bugs"), but it won't overwrite categories anymore if they share the same ID in the DB and in the file unless you set "Force IDs".