:internal: add a type id for all node classes