Add deep copying feature for static shape graph

See #1.