Fix some errors in PMML writing.