Made _isDefined work correctly on Tags.

My unit tests had been insufficient, and it turns out to have never
worked right for many common uses cases.

Also, whitelisted the <br> tag, and "!" in Chart Labels.