pieterbs,On your first question. Based on your description, I believe you are right.
Regarding why this happened: You might want to buy a lottery ticket tonight. :-) You've touched a rare weakness in our hashing algorithm. While rare overall, there's a chance your environment has a greater proclivity for a hashing collision. If this is the only time you've seen this, then maybe you'll be content to dismiss it as a fluke. But if this has happened more than once, then I suggest you open a support case.
Regarding resetting the SQL Text... Possible, yes. But please open a support case as making changes to the repository can be dangerous. I've spoken with the Support Manager so he is aware of this and will know how to help you.