Fix toString, copy, filterNodes for compound graphs