you should add the `allTypes` also to the dictionary in case an exception should occur, since we're getting the resolved types from the exception