[Dev-luatex] determining if a macro is used on document level