pub fn path_field(base: &[PathElement], field: &str) -> Vec<PathElement>
Helper: extend a path with a field name.