The return type of `.toJSON()` of `MapSchema` and `ArraySchema` should be respected rather than returning `any`.   --- This is particularly useful on React applications where `.toJSON()` can be used to set to reflect local component state.