Support function declarations in dictionaries (module pattern)