fix nested complex types inside custom exceptions
Merge branch 'release/v0.9.7'