Added Lib.flatten as a last resort when you have nested collections. Also fixed a small bug having to do with functions of only one parameter that take a collection.

Signed-off-by: Richard Minerich <richard.minerich@gmail.com>