[TypeCast] Add deep copy support for variables.
Merge pull request #350 from wcwang/next

[TypeCast] Add deep copy support for variables.