fix instance dicts with str subclasses (#13903)
2 files changed