Implement MCVariable::copyasvalueref