fix(*): bugs in the type checker, inductive datatypes, and unifier

The bugs were indentified when performing the tiny change in the file
tests/lean/run/group.lean
fix(*): bugs in the type checker, inductive datatypes, and unifier