Import fix from https://github.com/puppetlabs/puppet/pull/2184/files
Documentation label can can be an array under ruby-2.1.0 - if it's an array, use the first element as the key.