Work out which RStruct/RStructList structs are really used, and how.