handle typedefs that contain functions (#292)