Fix segfault when calling tuple struct constructor as extern fn

Fixes #5315