On the Effect of Heterogeneity on the Dynamics and Performance of Dynamical Networks