merging #2487 setup failure on polyglot/arity.rb

minor change to fix a typo in the test plus more extensive error reporting to help track down these cases in the future