validation: convert node to map[string]interface{}

This is useful when trying to validate YAML document.

See:
https://gist.github.com/proppy/17b559c490fee8c41a85