Code cleanup: Fix calls to state.serializeChildrenToString

* Pass parentNode instead of children into that function.
* Lets us pass the original node into emitSeparator always.
* No change in parser test results.

Change-Id: I14f6e65b5e0cef4c0b3a594e9d5f31545c4f3578