Implement a simple Yaml based object system in R