bug fixes for #327167 as well as some cleanups and more thorough tests on * xmlregexp.c: bug fixes for #327167 as well as some cleanups and more thorough tests on atoms comparisons. Daniel