FEAT: refactoring of objects and functions assignment in compiler, now anonymous objects and functions are better supported.

Fixes issue #979 (Compilation error on SETting global function from unnamed context).