fix Issue 719 - runWorkerTask does not support implicit conversion of arguments

- Deduce deduce function type and argument types
  separatly to support implicit convesions.

- Pass arguments by ref when possible
Merge pull request #719 from MartinNowak/fix719

runWorkerTask does not support implicit conversion of arguments