make getReturnType handle non-function pointer types