modify rating instance rather than the constant class on serialize (bug 963217)

Fixing my blunder found by @diox. I was modifying actual constant classes, causing the classes to be globally modified per user request for an app. 

Make and return instances when dehydrating.