Added a new variable to reports.xqm.

References #522.