Improved eldoc handling of top-level functions