added Typed Flatten and FlattenTo
Merge pull request #410 from twitter/feature/more-flatten

added Typed Flatten and FlattenTo