[FIX] Export creates xml id based on wrong table name
[FIX] Do not search for model = table name in previous commit
[FIX] Update test for external id
[MERGE] [FIX] orm: when generating xml ids for export, use the model of the exported field instead of the current model. Courtesy of Stefan Rijnhart (Therp).