feat(kernel/for_each): avoid recursion at for_each template

It saves a lot of stack space.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
feat(kernel/expr): avoid recursion when deleting expressions

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>