pub fn slice_nested_leaf(nested: &[Nested<'_>]) -> (usize, usize)
returns offset and length to slice the leaf values