Fix bug where calls to externally-defined functions were treated as never returning pointers to anything and never leaking their arguments to the external context.