Fixed error in building overload set for overloaded functions.