Add implementation of _arity.