Fix in addMissingVarsToNewEnv.
Reordered S3 metavariables.