Added means for export formats to check the export mapping for format-specific errors.

This is useful as the formats may have different interpretations and
restrictions of the export mappings. For instance, an XML document
always has only one root, a restriction that is not necessarily true
for other formats (e.g. CSV, which has no hierarchical structure
whatsoever).