Fixed bugs poined out by Evgeny
solomon authored
 - diagonal contractions with not all edge lengths equal
 - read_all had a short circuit
 - CTF_VERSION 100 now defined

Also fixed a bug with A*A, which I introduced ~5 commits ago when fixing multi-tensor symmetric contractions.
8ea1a6e3