Läuchli's semantics for intuitionistic type theory in a more general group-theoretic setting