Remove/modify superfluous member functions of FunctionWithDict.

For historical reasons, FunctionWithDict in the ROOT 6 IB has multiple member functions that return the return type of the function.
Remove the duplicate/superfluous functions, and make sure the remaining functions resolve typedefs before returning the return type.
Please merge this request as soon as convenient.