calculate partial application arity on construction, fixes #150