CausedException stack formatting fix

Properly handles subclasses