Fixed loop bounds from hard-coded value of 3 to ndims
Always allocat a least one element in this->virtualdims
Set NDFileNumCaptured=1 in NDFileModeSingle mode because the HDF5 plugin uses it in all cases