Fix 9906: extend unaryFun and binaryFun to recognize function objects

Structs or classes with static `opCall` should be recognized as valid
function objects.

Fixes: https://issues.dlang.org/show_bug.cgi?id=9906