function isFunction(arg) {
        return ((arg && (arg._jsonata_function === true || arg._jsonata_lambda === true)) || typeof arg === 'function');
    }
@param {Object} arg - expression to test
@returns {boolean} - true if it is a function (lambda or built-in)