Added yaml() function

https://tickets.puppetlabs.com/browse/MODULES-1585