[PLT-368] Added handling for deserializing to SortedMaps.