Phylo: in to_networkx, use float edge weights (Bug #3405)

Bug reported by Aleksey Kladov: https://redmine.open-bio.org/issues/3405