Enforce function arity.