Dialog: Keep track of instances to focus when elements outside the dialog get focus

Works with inheritance. Adds tests for both. Fixes [#9241](http://bugs.jqueryui.com/ticket/9241) - Dialog: UI dialog inheritance causes undefined property '_focusTabbable' in IE9

I've added a single test that covers both cases, since the original feature had no test coverage.