Fix a crash when function argument is a tuple of tuples; issue #1