Add cloneVar function to clone a Var.