Attach jsdoc types to referenced functions

Adds parameter type detection for cases like

    function foo(s) {}

    module.exports = {
      /**
       * @param {String} s
       */
      foo: foo
    };