Fix SetVariable not making a copy of variable if a pointer is on stack