Merge pull request #350 from wcwang/next

[TypeCast] Add deep copy support for variables.