Ensure Object change lists are sorted during to_primitive

This ensures our tests succeed with a random PYTHONHASHSEED value.

Change-Id: I798e0b91f2e515562188b5d14cd7ce2055bd64fb
Partial-Bug: 1348818
Merge "Ensure Object change lists are sorted during to_primitive"