Add functions then, any, and all

Add the three functions:
* `then` which is a "flat-map" similar to map, but that maps an undef 
  value without iteration.
* `any` - iterative function returns true when block returns true
* `all` - iterative functions returns true when block returns true for
  all elements.