Fix search highlighting on warning searches when the extents
were returned out of order by the database.
Add tests for warning searches.
Try to fix tests under clang 3.3.
Merge fix for search highlighting on warning searches. Close #266.