Fixes falure on sortedset serialization

Change-Id: Icf76caa55a928ec45f59a97c5e41e0fb65d24972
Closes-Bug: #1328847
Merge "Fixes falure on sortedset serialization"