support serialization of scala sortedmap