Use a specialized lookup_mapply() function for generic function
calls (that need to pass in lookup when it's defined in the function
arguments). This speeds up generic function calls.