Insert names in the list of distances when components = FALSE