Various useful functions on tuples, overloaded on tuple size.