fix(library/unifier): use depth-first search strategy for solving class-instance constraints

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(library/unifier): use depth-first search strategy for solving class-instance constraints