CellML support: beautify the serialisation of a CellML file (closes #497).

The difference with the previous solution is that now we do it the
‘proper’ way, i.e. we rely on QDomDocument::save() as much as possible.