Progress towards reenabling torsion constraints for DIM.
Further amendments.
Merge branch 'bug-fix-torsions'