Add is_stmt and is_expr xpath helpers.