Add some reusable assertion functions in gumbo/dom/assertions.lua