Stupid me!!!
The documentation states clearly on page 77: "
Do not reference any attributes, outputs, or custom outputs of any object in the InitValue expression." within the AttributeDefinitionList description. So, the mistake (bug) was sitting in front of the computer.
Solution: Define every attribute from scratch, which means instead of:
{ Dataset 'range(1, 1000)' }
{ SampleSize size(this.Dataset) }
{ MeanDataset sum(this.Dataset)/this.SampleSize }
{ VarianceDataSet 'sum(map(|x|((x-this.MeanDataset)^2/(this.SampleSize-1)), this.Dataset))' }
one gets everything by a small extension of the code:
{ Dataset 'range(1, 1000)' }
{ SampleSize 'DatasetLocal = range(1, 1000); size(DatasetLocal)' }
{ MeanDataset 'DatasetLocal = range(1, 1000); sum(DatasetLocal)/size(DatasetLocal)' }
{ VarianceDataSet 'DatasetLocal = range(1, 1000); averageDatasetLocal = sum(DatasetLocal)/size(DatasetLocal); sum(map(|x|((x-averageDatasetLocal)^2/(size(DatasetLocal)-1)), DatasetLocal))' }
Apologies for my stupid question!