Replace 'collect' with 'select' in examples

As noted in issue:
https://projects.puppetlabs.com/issues/21252

The examples are wrong, they should have used select, not collect function.
Merge pull request #180 from hlindberg/patch-2

Replace 'collect' with 'select' in examples