Support for invoking callbacks as methods or through 'new'.