FIX: generate a unique name for anonymous functions.

Note: anonymous functions are not yet supported!