Handle boolean properties properly.

Also, augment the tests to test for it.
Fix eventing for currentDocumentLanguageChanged.