VarSet: implement deep copying ourselves instead of using Marshal for a speed increase