Fixes to validation for NTUP_PHYSVAL
Making sure that the events of NTUP_PHYSVAL are counted correctly.
At the same time, fixing the corruption check which was crashing on any files that are not fairly standard POOL files or derivations; see for example the crash here: