fix a bug in output arity check
Merge branch 'master' of https://github.com/hexhex/core