Extract proper function metadata from JSType, JSDocInfo and Scope.Var's initial value node