report correct arity of composed function