Improved Error Messages for Incompatible Types in Functions

Improved error messages about incompatible types passed to multiIf , array and some other functions.