The idea is to reuse as much as the code in constraints.c, otherwise we'd have to add a bunch of  new "unpack" functions only for tags . The way is somewhat regarding templates as special tags -- while actually we only use the consistent way to record the resources that are derived from templates, and still we record them in their own hash table.