Improving stacktrace output and copy handling for StackTraceDialog (closes #56)