Add any2array function and tests, from Puppetlabs stdlib