Proc#arity return 0 when opcode was not OP_ENTER
Merge pull request #2421 from ksss/safe-arity

Proc#arity return 0 when opcode was not OP_ENTER