Recognize arity mismatch error for primitives