refactor native_stack_length
fix #84
Merge branch 'issue-84'