Enforce matching function arity for reactions.