test(type_checker): add example showing how to use the kernel exception formatter

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
checkpoint
checkpoint2
checkpoint3: implement app_rewriter
fix(kernel/expr): add expr operator() with 8 args