fix nested complex types inside custom exceptions