patch type_to_str to handle complex function-ptr decls better