test-helper: add should-error-re macro
define-arx: auto-detect arity in function forms