Bug 827160 - added HTMLObjectElement typemustmatch check as well as unit tests. r=johns,sr=bz