prefs: change getPrefIds to return it's value
* code cleanup - makes it simpler to use

(integrated from trunk branch change 10c434f by Todd Whiteman <toddw@activestate.com>)