Fix sorting of GraphObject slices
Add subgraph printing test
Print subgraphs properly, fixes #2