Hazard curve in multiple IMTs

Addresses https://bugs.launchpad.net/oq-nrmllib/+bug/1166107 in the context of https://bugs.launchpad.net/openquake/+bug/1160427