the changetracking has a problem with 1-to-1 containment links if there are cross references to that element in before. there is no exception thrown if there are prior links.
fix by adding additional checks