Fix for #3450. Also, stuff.
Tape is not a lattice.
Merge pull request #3453 from Segrain/master

Bugfixes.