In the version of this Article originally published, the values of two of the functions used to calculate the multifunctionality index were incorrect, which affected Figs 3,4 of the main article and Supplementary Figs 3,4,5,6,9. Please see the correction notice for full details.