Metapopulations and coalescent theory