Fix a problem with nested hide support to make sure to get the deactivate calls right, this also impacted the history support where it is setting up a hide based upon the history.  And add another test for this.
Add one test which uses a custom view, I should add more, but this is a start.