Add method to get ID of task group
Manage mapping from ID to task group in `TeXMF` for efficiency