Support for flattening tuples