Update MCVariable::copyasvalueref to return false on memory failure only