I did not add a testcase before, because I thought that if someones copies the source from wiki at leat he can be sure that I did not make an erroneus testcase :-)
Anyway, I added one now. If someone here wants to look at it: http://pastebin.com/m17e5a51c (script is in line 80ff) I also found that the error comes only if the bracket is at the very end of the contains-expression. thx jakkob