fn collect_leaf_path_types<'a>( field: &'a Field, path: &mut Vec<&'a str>, paths: &mut Vec<(Vec<&'a str>, JsonNativeType)>, ) -> Result<()>