Encode child counts as an array, not as a switch.
Emit case clause statements on the same line if that's how they were written in source.
Update test.
Merge pull request #1045 from Microsoft/childCountArray

Encode child counts as an array, not as a switch.