Make graph dup do a deep copy. Closes #6