puppetlabs/puppet — pull request #2514 by hlindberg (2014-04-07 21:46:22+00:00)
Title: (PUP-1960) Change API of Resource and Class types for undef/array

This changes the API of Resource and Class types so that they:
* return a single type or undef when there is a single key
* return an array of types or empty array when there are multiple keys,
or when a single key is an array.

The arguments are still flattened and compacted.

For Resource, the ability to also pass the type in the array was
removed. i.e. Resource[File, f1, f2] or Resource[File, [f1, f2]] are
allowed but not Resource[[File, f1, f2]].