CQL allows overloading by type and arity for functions. In #3170 only the arity is matched. In this ticket also the types should be matched.