Added synd_type to SquareLattice.dist and UnionJackLattice.dist arguments, may refactor later to make dist a method of Lattice that raises an error
Added templates for the path functions in SquareOctagonLattice.