Added support for execution of external functions imported (via Declare stmt) in programs.