shallow copy for VariablesContainer
shallow copy for stack classes