Broaden cover of getArity.
arity in Compiler a bit safer.