Anonymous functions support. Closes #1575