Add safe yaml parsing to node.

[merge]