*do* replace Root w/collection() when SearchStrategy=LUX_UNOPTIMIZED
converting PathOccurrenceQueryTest to xml configuration
fixed some escaping bugs with RegExpQuery in XML format
mopping up formatting and character escaping issues for test refactor