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