Fix segfault when calling tuple struct constructor as extern fn

Fixes #5315
Add assertions to test
auto merge of #8580 : bytewiseand/rust/tuple-struct-ctor-ptr, r=alexcrichton

Fixes #5315