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...

Hi Matthias,
I tried using hashes but did not get any noticeable improvements.
Can you be more specific? What functions did you use?