Only apply environment() to 'closure' type functions

1 job for dev-builtin_fun_environment
in 2 minutes and 1 second, using 0 compute credits, and was queued for 2 seconds