R: make_clusters takes the graphs as well

First step towards storing a reference to the graph....
R: fix as.dendrogram after the is_hierarchical() changes