Util: Made 'query' more generic (monoid instead of list).
Removed debugging code.
Fixed initial punct removal in notes.

Previous version affected citations inside notes.
Removed old debugging comment.
Fixed isNumStyle

Previously it gave false positives on e.g. 'p. 30' in a note citation.
Minor code reformatting.