fixing issues relating to lux:search() document ordering optos
wrapping a few more document-ordering cases; uncovered and fixed a bug
w/declaring ordered search results to be document-ordered no matter
what order they actually were.  Now we wrap ordered flwors in an
unordered call, and report ordering correctly to the Saxon optimizer.
refactored for better code sharing
indicate docid-ordering with a null sort criterion
indented
added missing core close() - this is needed on Windows, at least
clean up cores after each test properly
fixed element text analyzer test after element visibility changes