templates/module.mk: add missing lattice templates
Enable numerical differentiation of vector-valued functions

so that multiple constraints at the same lattice site can share the
outcome of mass matrix diagonalization.