Fix for name clashes when applying transformations

Fixes #1684, and most likely a lot of other partial evaluation problems.
IBC version updated since the problem may show up in any library code
that's currently built.