To array

This includes the cache fixes in #313 because of oddities with git...

@wdwvt1, here is the `to_array` method. You can do some nifty summing over the `length` array, among other things, but might not be worth redeveloping the total branch length method to use a different tree representation