Add `AnyFunction` for representing any kind of function and add `functions` iterator to `Context`