GEOT-4049, Fix and testcase for XML pattern facet parsing problem

https://jira.codehaus.org/browse/GEOT-4049