Fixing initialization context in anonymous functions.

When an anonymoys function was defined inside an initialization
context, that context transfered over to the function body and could
lead to spurious error messages.