Added childSelectionCount attribute to Nodes.
Refactoring map writers.