function validateArguments(signature, args, context) {
        if(typeof signature === 'undefined') {
            // nothing to validate
            return args;
        }
        var validatedArgs = signature.validate(args, context);
        return validatedArgs;
    }
Validate the arguments against the signature validator (if it exists)
@param {Function} signature - validator function
@param {Array} args - function arguments
@param {*} context - context value
@returns {Array} - validated arguments