Adds anon function and flags in cache

Creates an new map cache to store information about method containing the code
of anonymous functions, and method flags.
With tests.

The cache is using 'simple' synchronization. It is not possible to put it inside the cache actor as it would create re-entrant synchronized actor calls.

Fixes #1001001