basic XS infrastructure and boilerplate for LaTeXML::State