Fix #10044 more natural binding of PDB return values
AFAIK ready to merge, but should be reviewed for what and why it does. Open to suggestions for changes.
No effect on existing scripts. Opt-in for new scripts.
I think should be merged before 3.0 since third-parties can use this while porting scripts.
Makes scripts more canonical Scheme, were we ever to use GIR introspection.