Support struct arguments to exported methods