Fix stacktrace bounds panic

Closes #29
Closes #30