Fix bug when datafile was changed and nobs resulting from old dataset was bigger than is possible in new dataset
Merge pull request #533 from JohannesPfeifer/master

Fix bug when datafile was changed and nobs resulting from old dataset wa...