So not only does dsimportexport not actually export as well as import, but it doesn't even import properly.
It turns out that you can't use the -O overwrite flag and expect to get the same behaviour as when you import exactly the same file using Workgroup Manager. sheesh…
so anyway, as I was using php anyway for [...]