feat(kernel/environment): add trust level field

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
feat(kernel/environment): add is_descendant method

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
refactor(kernel/type_checker): new API for type checker

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