fix for #210 defer reification

Defer blocks which cannot be initialized from a save file because their template blocks are created dynamically and haven't been created yet.

Also fixed a problem where scripts were reinitialized (and duplicated) every time the user switched from Run mode to Edit mode.