There exists an utility which can set auto initialized data class values back to NULL. So you could use it to restore a valid state before you merge it to persistency.
Its published here: [http://sourceforge.net/ivySupplement/dataClassNuller][1]
I did not test if this implementation still works with an up to date ivy version.
So you have to verify and test it.
[1]: http://sourceforge.net/projects/ivysupplements/files/Helper/