Fixed intermittent bug in saving NumPy files caused by ordering issue
for SCI-1884
Fixed stale stored values causing wrong stats to be given by added
missing set dirty calls