prefs: don't serialize shadowed ordered prefs

https://bugs.activestate.com/show_bug.cgi?id=104645

(integrated from trunk branch change 585f62d by Mark Yen <marky@activestate.com>)