support generic call in apply(f, ...)
(broken) patch to eliminate emit_func_check