Fix issue with this and arguments in deferred functions

Fixes #425