provide more useful error message on external atom arity mismatch