Misc bug fixes around the copy operation

Also pull in the latest version of graphlib.
Prep v0.4.2 release