PBP; test for script compilation; ensure type is correct for old run when it is undefined