CF-345: update json OrderLy to express array properly, add more unit tests, update PreferencesService not to hardcode /archive_prefs/:id