fn expand( root: &Yaml, expr: &str, stack: &mut Vec<String>, env: &'_ dyn Fn(&str) -> Option<String>, ) -> Result<String, String>