Micro-optimization: check the overloaded operator kind before
checking for a lambda.

Thanks to Jordan for the pointer.