validate function arguments against declared parameters for externs