Fixed #5252 (Improve check: use Library to validate function arguments in invalidFunctionUsage)