Use node (sub)type names instead of hardcoded ids
The ids are not stable.
See https://mailman.ntg.nl/pipermail/dev-luatex/2023-March/006739.html for more context.
I did not even try to test this patch, I just tried to translate the comments to node (sub)type names, which hopefully should work. You may go for another solution, this is just an idea.