Add loss type

Add Loss type to each risk output.
Associated oq-nrmllib PR: https://github.com/gem/oq-nrmllib/pull/118
https://bugs.launchpad.net/oq-nrmllib/+bug/1192950