Added shuffle() method to Collection
Remove unneeded calls to with
Added some typehints and minor docblock fixes
Merge pull request #5016 from ephraimb/4.2

Added shuffle() method to Collection
Fix method order.