[TIMOB-16153] Fixed pre-hook callback function signature and function ho...

...ok return args. These changes will break Titanium SDK 3.2.0, so I added a fix just for that.