Dom transformations no longer "thrash".

Much faster!

Fix for enwiki Soviet Union article (and others surely) issue.

Change-Id: I8181e7de92fbbc3d71eff5a70bc9c8de2d52e670