Support callback return types in codegen
Merge pull request #3183 from ChrisParis/callback-return

Support callback return types in codegen