external: Fix support for hooks called in an array context.