I tried ignoring the string conversion at first when I ran it and that produced faaar more errors, but I agree that it seems inefficient. IDs are only ever integers, so I don't see the point in the conversion. But I went back to try to convert all of the called ids into strings and missed some in that really tedious block of code (that mostly works!).
Corrected all of the ID string conversions I could find. They are fixed in v.07. The other issue I'm assuming must be from the original error but am unsure. That may involve more investigation.