Fix bug in lattice.__ne__.