Some fixes for bug #8390.  Filtering of reports now works.