Yet another go at CoreArity
Amazingly, there were still Wrong Things in the arity analysis, exposed by my fiddling with eta expansion. I simplified the code, clarified the comments, added more examples, and tidied it all up. I hope it's better this time.
Showing with 108 additions and 73 deletions