feat(kernel/normalizer): avoid unnecessary creation of closures for n-ary functions

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>