In function timeout the context is optional. In debug mode context is checked
for type Object. If no context is given this fails. Now context is only checked
if context is given.
Merge pull request #14 from sebastian-software/fix/function-delay-debug-error

In function timeout the context is optional. In debug mode context is checked for type Object.
Merge remote-tracking branch 'origin/master' into fix/promises-release-to-early