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.