feat(kernel/builtin): add is_* functions

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