SI-8834 serialize, sequenceToXML pass all options

[SI-8834](https://issues.scala-lang.org/browse/SI-8834): `serialize` and `sequenceToXML` recursively call each other but were not passing all formatting options.  Fix that.