Remove unnecessary function StackElement::CopyObj.