test for within frame and scope resetting
reset scope when switching frames and windows - fixes Issue 1103
Merge pull request #1110 from twalpole/iframe

Push nil scope when switching windows and frames to fix issue 1103