Supporting type widening in Coalesce function and replaced Coalesce UDF
with local function.