add support for flat_map and concat in Seq and Option, and revert to
using ruby iterable comprehensions for performance reasons