pub fn check_depth(e: &Expr) -> Result<(), Error>
Depth guard: reject outright once MAX_DEPTH is exceeded (to avoid downstream recursive stack overflow).
MAX_DEPTH