Fix export of Benefit Cost Ratio calculator outputs.

Addresses https://bugs.launchpad.net/oq-engine/+bug/1181182

It also includes a refactoring of how the metadata included in the outputs are retrieved during export.

It solves the problems required for implementing https://github.com/gem/oq-engine/pull/1187