add support for `StackTrace` objects to fix #8