Add support for scalar functions that accept nulls