Bug 895222, improve skippability optimization for nodes, r=mccr8

--HG--
extra : rebase_source : ce3ebc2020a26d22f7cf2636d63657a8fe6ebb2d
Bug 896756 - Fix strict warnings in xpcshell's head.js. r=jmaher