Fixed generated code to include output user defined type.