Added facts:canonical-grouping-key#1 and #2

Usage:
for $fact in ...
group by $key := facts:canonical-grouping-key($fact, ($facts:CONCEPT, $facts:PERIOD))
return...

Please feel free to merge if you have an argument against using the canonical-grouping-key function here. I was just wondering if it was an oversight.