Borrowed from shapeless' flatten.scala example.
Flattens nested tuples, taking an argument a tuple of any size.
Transforms a tuple into a tab-delimited string, flattening any nesting, taking an argument a tuple of any size.
Tuple formatter utility.