Fixing failure on firefox documentXUL when you tried to override document.head
InstanceOf was failing inside a firefox extension
Merge pull request #35 from guilhermef/master

unit and parser checks pass, ref tests result identical to master - this looks fine to me.