fix for lifetime/borrow: ambiguous type error

Close #148
  - Added the explicit type declaration for `stack_integer`
  - re-aligned lifetime lines for readability
  - Tested successfully on the live site to verify that it works