Fix bug where functions passed to setRestoreScript were not wrapped for execution when eval'd.
Fix bug where functions passed to setRestoreScript were not wrapped for execution when eval'd.

sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata