Fix lpca choking on trees without root branch length.

This is essentially the same fix as for #178, and was also an opportunity to unify the various PCA implementations' fetching of the reference tree with a shared function in the guppy_pca cmdobj.