Fixed code that recognises 'callable' deferred input so TypeError raised by given function will be propagated