Fix bug with unsetThemeState + more tests.
Merge pull request #2077 from mockingbird/fix-cpcheckbutton-theme-bug

Fix bug with unsetThemeState + more tests.
Fix CPViewTest
Merge pull request #2077 from mockingbird/fix-cpcheckbutton-theme-bug

Fix bug with unsetThemeState + more tests.
Fixed: error when running some XML tests with rhino.

This problem causes error in Travis that are not errors with JSC.