Functions to convert between tuples and HLists.