Fix a return type bug after allowing 'foo *functionname()'