Adding a simple `coll?` function

`coll?` function is added which checks whether a given argument is a collection ie. whether the given argument is an iterable and not a string. 

Also updated the `flatten` function which does this check