Make sure scripting api rebinds model on reload

This is a fix for IS [#56962282]

This doesn't fix the issue for the model-specific scripting apis, partly to avoid appearing to have fixed the deeper issues created by the particular way in which 'model' was deglobalized.