Correctly handle struct out arguments