tree_flatten
supports named tuples
#1446
Merged
tree_flatten
supports named tuples
#1446