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.